package com.ficus.road.maintain.core.model.digitalTwin;

import com.ficus.road.maintain.core.model.Coordinate;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 数字孪生-道路信息
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DigitalRoadInfo implements Serializable {
    /**
     * 主键id
     */
    @Id
    private String id;

    /**
     * 行政区域
     */
    private String region;

    /**
     * 路名
     */
    private String name;
    /**
     * 长度 km
     */
    private Double length;

    //gps点集合

    private List<Coordinate> coordinates;

    //ONE_WAY:单向 TWO_WAY:双向
    private String streetType;

    //车道数
    private Integer laneCount;

    private Integer hitCountToday;

    private Integer hitCount;

    private List<Asset> assets;
    private Long assetsCount;

    private Date creationTime;
    private Date modificationTime;

    private String roadId;

}
